import { mainRequest } from './base-request'

export function getMapFilterTree(mapId: string) {
  return mainRequest.sendRequest('get', '/label/tree', { mapId })
}
export function getMapPointsList(mapId: string) {
  return mainRequest.sendRequest('get', '/label/list', { mapId })
}
export function getMapAnchorList(mapId: string) {
  return mainRequest.sendRequest('get', '/map_anchor/list', { mapId })
}

export function getMapPointDetail(pointId: number) {
  return mainRequest.sendRequest('get', '/map/point/detail', { pointId })
}
